package util;

import java.io.*;


public class HelpOS
{
  static String OpSystem;  // CT (client machine's operating system name)
  static String file;
  static
  {
    file=null;
  }
  public static void setFile(String s)
  {
    file=s;
  }
  public static void openHelp()
  {
    //String prog;
    Process p;
    Runtime runtime = Runtime.getRuntime();
    //String fs = System.getProperty("file.separator");
    //String ipath=SystemState.install_path;
    //String bpath=SystemState.browser_path;
    //String target=ipath
    // +fs+"doc"
    // +fs+file;
    try
    {
      /*OpSystem = System.getProperty("os.name", "Unknown operating system");
      if(OpSystem.compareTo("Windows 95") == 0
      || OpSystem.compareTo("Windows 98") == 0
      || OpSystem.compareTo("Windows NT") == 0)
      {
        prog =  bpath
              + "NETSCAPE.exe file:///"
              + target;
        Debug.println(prog);
        p = runtime.exec(prog);
      }
      else
      {
        try
        {
        prog =  bpath
               + "netscape file:///"
               + target;
          Debug.println(prog);*/
          p = runtime.exec("showhelp.bat");
        /*}
        catch (IOException e3)
        {
          Debug.println(e3);
        }
      }*/
    }
    catch (IOException e1)
    {
      e1.printStackTrace();
    }
  }
}


